package com.googlecode.maratische.google.model;

import java.sql.Date;

import be.lechtitseb.google.reader.api.model.feed.ItemDescriptor;

public class Item extends Model {

	private boolean read;
	private String uri;
	private String title;
	private String link;
	private String description;
	private Integer feedId;
	private Date readedDate;
	private Integer labelId;
	private java.util.Date updatedDate;
	private String sourceUri;
	private String author;
	
	public Item(ItemDescriptor itemDescriptor) {
		setUri(itemDescriptor.getUri());
		setTitle(itemDescriptor.getTitle());
		setLink(itemDescriptor.getLink());
		setDescription(itemDescriptor.getDescription());
		setUpdatedDate(itemDescriptor.getUpdatedDate());
		setSourceUri(itemDescriptor.getSourceUri());
		setAuthor(itemDescriptor.getAuthor());
	}
	
	public Item(ItemDescriptor itemDescriptor, boolean read) {
		this(itemDescriptor);
		this.setRead(read);
	}
	
	public Item() {
	}
	
	public String getUri() {
		return uri;
	}
	
	public void setUri(String uri) {
		this.uri = uri;
	}
	
	public String getTitle() {
		return this.title;
	}
	
	public void setTitle(String title) {
		this.title = title;
	}
	
	public String getLink() {
		return this.link;
	}
	
	public void setLink(String link) {
		this.link = link;
	}
	
	public String getDescription() {
		return this.description;
	}
	
	public void setDescription(String description) {
		this.description = description;
	}

	public void setRead(boolean read) {
		this.read = read;
	}

	public boolean isRead() {
		return read;
	}

	public void setFeedId(Integer feedId) {
		this.feedId = feedId;
	}

	public Integer getFeedId() {
		return feedId;
	}

	public Date getReadedDate() {
		return readedDate;
	}

	public void setReadedDate(Date readedDate) {
		this.readedDate = readedDate;
	}

	public Integer getLabelId() {
		return labelId;
	}

	public void setLabelId(Integer labelId) {
		this.labelId = labelId;
	}

	public java.util.Date getUpdatedDate() {
		return updatedDate;
	}

	public void setUpdatedDate(java.util.Date updatedDate) {
		this.updatedDate = updatedDate;
	}

	public String getSourceUri() {
		return sourceUri;
	}

	public void setSourceUri(String sourceUri) {
		this.sourceUri = sourceUri;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}
}
